import request from '@/utils/request'

// 查询报列表
export function listProfit(query) {
  return request({
    url: '/api/profit',
    method: 'get',
    params: query
  })
}

// 查询报详细
export function getProfit(id) {
  return request({
    url: '/api/profit/' + id,
    method: 'get'
  })
}

// 新增报
export function addProfit(data) {
  return request({
    url: '/api/profit',
    method: 'post',
    data: data
  })
}

// 修改报
export function updateProfit(data) {
  return request({
    url: '/api/profit',
    method: 'put',
    data: data
  })
}

// 删除报
export function delProfit(id) {
  return request({
    url: '/api/profit/' + id,
    method: 'delete'
  })
}
